Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
alexa-ssml
Advanced tools
Manipulate and validate the subset of SSML supported by the Alexa Skills Kit
npm install alexa-ssml
<break />
changed to <pause />
transform-react-jsx
babel pluginimport { ssml, renderToString } from 'alexa-ssml';
const tags = (
<speak>
Here is a number <w role="ivona:VBD">read</w> as a cardinal number:
<sayAs interpretAs="cardinal">12345</sayAs>.
Here is a word spelled out: <sayAs interpretAs="spell-out">hello</sayAs>.
</speak>
);
const raw = renderToString(tags);
import { ssml } from 'alexa-ssml';
function LongPause(props) {
return <pause time={10000} />
}
const data = (
<speak>
Foo <LongPause /> bar.
</speak>
)
ssml(tag, props, ...children) -> object
tag
can be a string or function{ tag, props, children }
renderToString(data, [options]) -> string
ssml
function"speak"
tagpretty
, defaults to false. Makes the SSML easier to read.To use SSML JSX syntax directly in JavaScript add /** @jsx ssml */
to the top of the file or configure transform-react-jsx
using .babelrc
:
{
"plugins": [
["transform-react-jsx", { "pragma": "ssml" }]
]
}
FAQs
JSX for Alexa Skills Kit SSML
The npm package alexa-ssml receives a total of 16 weekly downloads. As such, alexa-ssml popularity was classified as not popular.
We found that alexa-ssml demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.